package com.linzp.bishe.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.linzp.bishe.entity.Hproject;
import lombok.Data;

/**
 * @ClassName HprojectExcel
 * @Description 描述
 * @Author LinZePeng
 * @Date 2022/2/28 14:15
 * @Version 1.0
 */
@Data
public class HprojectExcel {
	@ExcelProperty("合同名称")
	private String contractName;

	@ExcelProperty("合同金额（万）")
	private Double contractAmount;

	@ExcelProperty("合同类型")
	private String contractCategory;

	public Hproject getHproject(){
		return new Hproject()
				.setContractName(this.contractName)
				.setContractAmount(this.contractAmount)
				.setContractCategory(this.contractCategory);
	}
}
